<?php
error_reporting(E_ERROR);
// $Id: checkwhois.php
include('j15comp.php');

include($mosConfig_absolute_path . "/components/com_ecjc_lang/whois/main.whois");
$domname = $_REQUEST['domname'];
$domain = $domname;
if(isset($_REQUEST['domain'])) {
	$domain = $_REQUEST['domain'];
}
$whois = new Whois($domain);
$result = $whois->Lookup();
echo "<pre>";
echo "<hr>";
echo "<center>Domain Registration Details</center>";
echo "<hr>";
foreach ($result['rawdata'] as $value)
	{
    echo "$value \n";
	}
echo "</pre>";

?>
